package cn.pm.datasource.sharding.consts;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Create by spf
 *
 * 系统配置常量
 */
@Configuration
public class SysConst {

    /**
     * 本系统版本号
     */
    private static String version;
    @Value("${myApp.version:unknown}")
    private void setVersion(String version) {
        SysConst.version = version;
    }
    public static String getVersion() {
        return version;
    }

    // 默认浏览器缓存失效时间 秒  此处配置缓存7天
    public static final long CACHE_EXPIRES_TIMEOUT = 3600 * 24 * 7;

}
